doctype html
html
  head
    meta(charset='utf-8')
    meta(http-equiv="X-UA-Compatible", content="IE=edge")
    title 牌局统计
    // <link rel='stylesheet' href='/stylesheets/style.css' />
    style.
      #matches {
        white-space: pre-wrap;
      }
  body
    script.
      window.matches = !{JSON.stringify(matches)}
      window.title = !{JSON.stringify(title)}
    h1= title
    #matches
    script.
      window.onload = function() {
        Promise.resolve()
          .then( _ => {
            document.querySelector('body').style.background = 'red'
            document.querySelector('#matches').innerHTML = JSON.stringify(matches, null, '\t')
          })
          .catch( _ => document.querySelector('body').style.background = 'yellow')
      }
